<!DOCTYPE html>
<html>
  <head>    
      <title>后台管理首页</title>
      <% include layout/lib.ejs %>
      <link rel="stylesheet" type="text/css" href="/css/managerIndex.css" />
  </head>
  <body>
    <div class="pageTitleBox">
      <span id="nowTeam"></span> / 管理入口
    </div>
    <div class="memberIndexBox">
      <div class="memberItemBox">
        <div class="memberItem">
          <a href="/memberManager">
          <div class="memberPhoto">
            <i class="fa fa-users fa-lg"></i>
          </div>
          <div class="memberName">成员管理</div>
          </a>
        </div>
        <!-- <div class="memberItem">
          <div class="memberPhoto">
            <i class="fa fa-photo fa-lg"></i>
          </div>
          <div class="memberName">相册管理</div>
        </div> -->
        <!-- <div class="memberItem">
          <div class="memberPhoto">
            <i class="fa fa-balance-scale fa-lg"></i>
          </div>
          <div class="memberName">DKP管理</div>
        </div> -->
        <!-- <div class="memberItem">
          <div class="memberPhoto">
            <i class="fa fa-history fa-lg"></i>
          </div>
          <div class="memberName">历史掉落管理</div>
        </div> -->
        <!-- <div class="memberItem">
          <div class="memberPhoto">
            <i class="fa fa-bullhorn fa-lg"></i>
          </div>
          <div class="memberName">团队通知管理</div>
        </div> -->
        <div class="memberItem" id="logout">
          <div class="memberPhoto">
            <i class="fa fa-chevron-circle-left fa-lg"></i>
          </div>
          <div class="memberName">退出登录</div>
        </div>
      </div>
    </div>
  </body>
</html>
<script>
  var teamValue = customStorage.getPersistenceValue("teamValue");
  var teamName  = teamValue == 1 ? '黑翼团' : '安琪拉团';
  $("#nowTeam").html(teamName);

  //退出登录处理
  $("#logout").click(function(){

      POP.startLoading();

      HTTP.post("/dkpAction/managerLoginOut", {}, (rs) => {

        POP.endLoading();
        POP.success("提示信息", "登出成功，正在为您跳转");

        setTimeout(() => {
          location.href = "/managerLogin";
        }, 1000)
      })
    
  })
</script>